<?php
class ItemTypeForm extends Zend_Form
{
	public function __construct($options = null)
	{
		parent::__construct($options);
		$t = Zend_Registry::get('Zend_Translate');

		$this->setname('itemType');

		$name = new Zend_Form_Element_Text('name');
		$name->setLabel($t->_('name'))
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('StringTrim');

		$id = new Zend_Form_Element_Hidden('id');

		$submit = new Zend_Form_Element_Submit('submit');

		$reset = new Zend_Form_Element_Reset('reset');
		$reset->setLabel('reset');

		$this->addElements(array(
			$name, $reset, $submit, $id
		));
	}
}